package com.chenlipeng.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.chenlipeng.utils.JdzXyLogin;
import com.chenlipeng.utils.SocreResultBean;

@Controller
@RequestMapping(value = "/user")
public class JdzXyLoginController {

	@RequestMapping("/jdzxylogin")
	@ResponseBody
	public List<SocreResultBean>  login(HttpServletRequest request, HttpServletResponse response, @RequestParam(required=false) String username,
			@RequestParam(required=false) String password) {

			Map<String, Object> map = new HashMap<>();
			return JdzXyLogin.isLogin(map);
	}
}
